package com.shuidihuzhu.sdb.service;

import com.shuidihuzhu.sdb.entity.User;
import com.shuidihuzhu.sdb.helper.log.matter.LogTraceSimple;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Slf4j
@Service
public class SomeSimpleService {


    @LogTraceSimple.LogTraceAnnotation(key = "'做件事-'+#p[0].id")
    public void something(User user) {
        log.info("开始");
        log.info("结束");
    }

    @LogTraceSimple.LogTraceAnnotation(key = "'做其他事-'+#p[0].id+' '+#p[1]")
    public void somethingElse(User user, int age) {
        log.info("开始");
        log.info("结束");
    }
}
